Skip to content

feat: taxonomy publish/unpublish/localize/unlocalize + terms localize/unlocalize - #179

Closed
OMpawar-21 wants to merge 2 commits into
developmentfrom
feat/taxonomy-publish-unpublish-localize
Closed

feat: taxonomy publish/unpublish/localize/unlocalize + terms localize/unlocalize#179
OMpawar-21 wants to merge 2 commits into
developmentfrom
feat/taxonomy-publish-unpublish-localize

Conversation

@OMpawar-21

Copy link
Copy Markdown
Contributor

Summary

  • Adds publish(data) and unpublish(data) to TaxonomyPOST /taxonomies/publish|unpublish (collection-level)
  • Adds localize(data, locale) and unlocalize(locale) to TaxonomyPOST|DELETE /taxonomies/{uid}?locale= (instance-level)
  • Adds localize(data, locale) and unlocalize(locale) to TermsPOST|DELETE /taxonomies/{t}/terms/{uid}?locale= (instance-level)

Reference: Java SDK feat/DX-9676-taxonomy-publish
TRD: https://contentstack.atlassian.net/wiki/spaces/CD/pages/3573580300

Test plan

  • python3 -m pytest tests/unit/taxonomies/ tests/unit/terms/ — 21/21 passed
  • test_publish → verifies POST to taxonomies/publish
  • test_unpublish → verifies POST to taxonomies/unpublish
  • test_localize → verifies POST to taxonomies/{uid}?locale=hi-in
  • test_unlocalize → verifies DELETE to taxonomies/{uid}?locale=hi-in
  • test_localize (terms) → verifies POST to .../terms/{uid}?locale=hi-in
  • test_unlocalize (terms) → verifies DELETE to .../terms/{uid}?locale=hi-in

🤖 Generated with Claude Code

…calize/unlocalize

Closes parity gap with JS SDK and Java (feat/DX-9676-taxonomy-publish).

Taxonomy (taxonomy.py):
- publish(data) → POST /taxonomies/publish (collection-level)
- unpublish(data) → POST /taxonomies/unpublish (collection-level)
- localize(data, locale) → POST /taxonomies/{uid}?locale= (instance-level)
- unlocalize(locale) → DELETE /taxonomies/{uid}?locale= (instance-level)

Terms (terms.py):
- localize(data, locale) → POST /taxonomies/{t}/terms/{uid}?locale= (instance-level)
- unlocalize(locale) → DELETE /taxonomies/{t}/terms/{uid}?locale= (instance-level)

21/21 unit tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@OMpawar-21
OMpawar-21 requested a review from a team as a code owner August 3, 2026 18:08
@snyk-io

snyk-io Bot commented Aug 3, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

…nlocalize and terms localize/unlocalize

test_07_taxonomy.py:
- TestTaxonomyLocalize: localize → unlocalize against live stack
- TestTaxonomyPublish: publish → unpublish (skips gracefully if taxonomy_publish feature not enabled)

test_08_terms.py:
- TestTermsLocalize: localize → unlocalize against live stack

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@OMpawar-21
OMpawar-21 marked this pull request as draft August 3, 2026 19:01
@OMpawar-21

Copy link
Copy Markdown
Contributor Author

Closing for now — demo preparation in progress. Will reopen when ready to build.

@OMpawar-21 OMpawar-21 closed this Aug 4, 2026
@OMpawar-21
OMpawar-21 deleted the feat/taxonomy-publish-unpublish-localize branch August 4, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant